Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore D

Total Complexity 149
Dependencies 9
Dependents 8
Total lines 1,550
Lines of code 704
Logical lines of code 258
Comment lines 457
Methods 67
Properties 7

Methods 67

Method Rating Maintainability Complexity Lines of code
get_db_rows_for_order()
A
41 14 58
query()
A
46 10 41
update()
A
48 10 31
persist_order_to_db()
A
48 9 31
get_db_row_from_order()
A
51 8 25
get_database_schema()
S
42 2 79
set_order_props_from_data()
S
58 6 15
backfill_post_record()
S
55 4 21
delete()
S
57 4 18
create()
S
57 4 16
trash_order()
S
52 3 27
update_post_meta()
S
61 4 11
get_internal_meta_keys()
S
44 1 55
get_order_data_for_ids()
S
57 3 17
read_multiple()
S
57 3 16
read()
S
60 3 13
delete_order_data_from_custom_order_tables()
S
62 3 12
get_order_data_for_id()
S
74 3 4
generate_select_clause_for_props()
S
66 3 7
join_address_table_order_query()
S
59 2 14
get_all_order_column_mappings()
S
63 2 11
get_order_table_select_statement()
S
56 1 18
get_stock_reduced()
S
74 2 4
set_stock_reduced()
S
74 2 4
update_meta()
S
79 1 3
add_meta()
S
79 1 3
join_billing_address_table_to_order_query()
S
79 1 3
join_shipping_address_table_to_order_query()
S
79 1 3
get_coupon_held_keys()
S
82 1 3
join_operational_data_table_to_order_query()
S
67 1 9
generate_select_and_join_clauses()
S
66 1 8
get_coupon_held_keys_for_users()
S
82 1 3
read_meta()
S
80 1 3
get_order_item_type()
S
82 1 3
release_held_coupons()
S
80 1 3
set_coupon_held_keys()
S
80 1 3
delete_meta()
S
79 1 3
init()
S
76 1 4
get_orders_table_name()
S
76 1 4
get_email_sent()
S
79 1 3
get_addresses_table_name()
S
76 1 4
get_operational_data_table_name()
S
76 1 4
get_meta_table_name()
S
76 1 4
get_all_table_names()
S
69 1 8
get_op_table_alias()
S
82 1 3
get_address_table_alias()
S
80 1 3
get_download_permissions_granted()
S
79 1 3
set_download_permissions_granted()
S
79 1 3
get_recorded_sales()
S
79 1 3
set_recorded_sales()
S
79 1 3
get_recorded_coupon_usage_counts()
S
79 1 3
set_recorded_coupon_usage_counts()
S
79 1 3
set_email_sent()
S
79 1 3
get_order_type()
S
82 1 3
get_new_order_email_sent()
S
80 1 3
set_new_order_email_sent()
S
79 1 3
get_order_stock_reduced()
S
80 1 3
set_order_stock_reduced()
S
79 1 3
get_total_refunded()
S
82 1 3
get_total_tax_refunded()
S
82 1 3
get_total_shipping_refunded()
S
82 1 3
get_order_id_by_order_key()
S
82 1 3
get_order_count()
S
82 1 3
get_orders()
S
82 1 3
get_unpaid_orders()
S
82 1 3
search_orders()
S
82 1 3
get_internal_data_store_keys()
S
68 1 9